import request from "../index.js";
// 获取金额收益数据
export const getAmountOfIncomeApi = () => {
	return request({
		url: '/wx/admin/revenue/data',
		method: 'get'
	})
}
// 获取日收明细数据
export const getdailyIncomeChartDataApi = (day) => {
	return request({
		url: `/get/Line/${day}`,
		method: 'get'
	})
}
// 获取业绩数据
export const getPerformanceChartDataApi = (data) => {
	return request({
		url: `/app/admin/performance/visualization`,
		method: 'get',
		data
	})
}
// 获取订单数据
export const getOrderSaleChartDataApi = () => {
	return request({
		url: '/wx/admin/order/data',
		method: 'get'
	})
}
// 获取用户数据
export const getUserChartDataApi = () => {
	return request({
		url: '/userSign',
		method: 'get'
	})
}
// 获取用户购卡列表数据
export const getUserBuyCardListApi = (data) => {
	return request({
		url: '/admin/orderList',
		method: 'get',
		data
	})
}
// 获取售卖详情
export const getSellDetailApi = (data) => {
	return request({
		url: '/admin/order/bill/list',
		method: 'get',
		data
	})
}